package com.daoeping.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.OneToMany;
import javax.persistence.CascadeType;

/**
 * Bsc_certificate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="bsc_certificate"
    ,catalog="daoeping"
)

public class Bsc_certificate  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     private String description;
 	 private Bzn_jobdescription bzn_jobdescription;

    // Constructors

    /** default constructor */
    public Bsc_certificate() {
    }

	/** minimal constructor */
    public Bsc_certificate(String name) {
        this.name = name;
    }
    
    /** full constructor */
    public Bsc_certificate(String name, String description,Bzn_jobdescription bzn_jobdescription) {
        this.name = name;
        this.description = description;
        this.bzn_jobdescription = bzn_jobdescription;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="name", nullable=false, length=200)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="description", length=200)

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
   
	@OneToMany(cascade=CascadeType.ALL,mappedBy="Bsc_certificate")
	public void setBzn_jobdescription(Bzn_jobdescription bzn_jobdescription) {
		this.bzn_jobdescription = bzn_jobdescription;
	}



}